package com.tyj.movie.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 日期: 2021/7/15 14:55
 * 作者: 谭友杰
 * 类说明:
 */
@Configuration
public class RabbitConfig {
    /**
     *配置mq的存储格式  需要开启   publisher-returns: true
     * @return
     */
    @Bean
    public MessageConverter messageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}
